﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserPanel.ascx.cs" Inherits="SY.WebSite.Web.UserControl.UserPanel" %>

<div class="info">
    <img style="height:92px;width:92px" onerror="this.src='<%= SY.WebSite.Common.Settings.StaticFileDomain %>/Themes/images/defaultAvatar.jpg'" src="/upload/avatar/<%= CurrentUser.UserId %>_middle.jpg" width="92" height="92" alt="<%= CurrentUser.UserName %>的头像" />
    <div style="position:absolute; left: 96px; top:-5px;">
        <strong><%= CurrentUser.UserName%></strong><br />
        <%= CurrentUser.DeptName%><br />
        <% if (CurrentIntegration != null) { %>
        可用素币：<span id="currentAvailable" class="currentAvailable"><%= CurrentIntegration.Available%></span><br />
        <%} %>
        待办事务：<span id="suggest_todocount">0</span>
    </div>
</div>

<script type="text/javascript">
    if(typeof(page)=="undefined") page = {};
    page.currentUser = { 
        userId: <%= CurrentUser.UserId %><% if (CurrentIntegration != null) { %>, 
        available: <%= CurrentIntegration.Available %>,
        honor: <%= CurrentIntegration.Honor %><%} %>
    };
</script>